package thread;

public class MyThread5 extends Thread{
    Task task;
    public MyThread5(Task task){
        this.task=task;
    }

    @Override
    public void run() {
        try {
            task.methodA();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
